package com.gsm.ftl.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by lijs on 2016-07-16 上午11:54.
 */
@Controller
public class UserFtlController {

    @RequestMapping(value = "/user/{id}.html", method = RequestMethod.GET)
    public ModelAndView user(@PathVariable("id") Integer id) {

        ModelAndView mv = new ModelAndView();
        mv.addObject("msg", "hello ftl world!" + id);
        mv.setViewName("user");

        return mv;
    }
}
